package cn.edu.zju.gis.disasterBE.sever.controller;

import cn.edu.zju.gis.disasterBE.sever.entity.disasterQuery;
import cn.edu.zju.gis.disasterBE.sever.service.disasterService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/")
public class CRUDController {
    @RequestMapping("disaster")
    public List<disasterQuery> selectAll(){
        return disasterService.selectAll();
    }
}
